<?php
class paginationComponent extends sfComponent{
	public function execute($request){
		$data	= array(
			'page'		=> intval($this->page),
			'limit'		=> intval($this->limit),
			'page_show'	=> 5,
			'total'		=> intval($this->total),
			'router'	=> strval($this->router),
			'params'	=> array()
		);
		if(isset($this->params) && is_array($this->params)){
			$data['params'] = $this->params;
		}
		$pag	= new PaginationHelper2($data);
		$data['pagination_pager']	= $pag->getPaginations();
		$this->setVar('data', $data['pagination_pager']);
		
	}
}